package com.tencent.org.service;


import com.tencent.basic.util.PageList;
import com.tencent.org.domain.Department;
import com.tencent.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentService{

    // 删除
    void del(Long id);
    // 新增
    void add(Department department);
    // 修改
    void update(Department department);
    // 查询所有
    List<Department> findAll();
    // 根据id查找
    
    // 分页
    PageList<Department> queryPage(DepartmentQuery departmentQuery);

    void patchDel(List<Long> ids);
    List<Department> departmentTree();

    Department findById(Long id);
}
